import request from '@/utils/request'

export function login(params) {
    return request({
        url: '/user/login',
        method: 'post',
        data: params,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}

export function loadCourse(search) {
    return request({
        url: "/course/mycourse",
        method: 'get',
        params: {
            search: search
        }

    })

}
